home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 001-025 / disk_008 / src / config.h < prev    next >
C/C++ Source or Header  |  1992-05-06  |  2KB  |  66 lines

  1. /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1984. */
  2.  
  3. #ifndef CONFIG   /* make sure the compiler doesnt see the typedefs twice */
  4.  
  5. #define CONFIG
  6. #define VAX      /* to get proper struct initialization */
  7. #define BSD      /* delete this line on System V */
  8. /* #define STUPID */   /* avoid some complicated expressions if
  9.             your C compiler chokes on them */
  10.  
  11. #define HELP    "help"
  12. #define HACKNAME "hack"
  13. #define HACKDIR "HACK_Game:"
  14. #define WIZARD  "wizard"/* the person allowed to use the -w option */
  15. #define NEWS   "news"   /* the file containing the latest hack news */
  16. #define FMASK   0660   /* file creation mask */
  17.  
  18. #define register
  19. #define OPTIONS      /* do not delete the 'o' command */
  20. #define SHELL        /* do not delete the '!' command */
  21. #define TRACK      /* do not delete the tracking properties of monsters */
  22.  
  23. /* size of terminal screen is (ROWNO+2) by COLNO */
  24. #define COLNO   77
  25. #define ROWNO   21
  26.  
  27. /*
  28.  * small signed integers (8 bits suffice)
  29.  *   typedef   char   schar;
  30.  * will do when you have signed characters; otherwise use
  31.  *   typedef   short int schar;
  32.  */
  33. typedef   char   schar;
  34.  
  35. /*
  36.  * small unsigned integers (8 bits suffice - but 7 bits do not)
  37.  * - these are usually object types; be careful with inequalities! -
  38.  *   typedef   unsigned char   uchar;
  39.  * will be satisfactory if you have an "unsigned char" type; otherwise use
  40.  *   typedef unsigned short int uchar;
  41.  */
  42. typedef   unsigned char   uchar;
  43.  
  44. /*
  45.  * small integers in the range 0 - 127, usually coordinates
  46.  * although they are nonnegative they must not be declared unsigned
  47.  * since otherwise comparisons with signed quantities are done incorrectly
  48.  * (thus, in fact, you could make xchar equal to schar)
  49.  */
  50. typedef char   xchar;
  51. typedef   xchar   boolean;      /* 0 or 1 */
  52. #define   TRUE   1
  53. #define   FALSE   0
  54.  
  55. /*
  56.  * Declaration of bitfields in various structs; if your C compiler
  57.  * doesnt handle bitfields well, e.g., if it is unable to initialize
  58.  * structs containing bitfields, then you might use
  59.  *   #define Bitfield(x,n)   xchar x
  60.  * since the bitfields used never have more than 7 bits. (Most have 1 bit.)
  61.  */
  62. /* #define   Bitfield(x,n)   unsigned x:n */
  63. #define Bitfield(x,n)   xchar x
  64.  
  65. #endif CONFIG
  66.